package panoramic

import (
	v1 "tdy-backend/app/panoramic/controller/v1"

	"github.com/gin-gonic/gin"
)

type ApiMaterialRouter struct{}

func (o *ApiMaterialRouter) MaterialRouter(Router *gin.RouterGroup) {
	api := v1.MaterialController{}
	r := Router.Group("V1")
	{
		r.POST("/Material/Commit", api.Commit)
		r.POST("/Material/Edit", api.Edit)
		r.POST("/Material/Delete", api.Delete)
		r.GET("/Material/ListForPage", api.ListForPage)
		r.GET("/Material/Detail", api.Detail)
	}
}
